#include "StdAfx.h"
#include "Tile.h"

#include "Object.h"
#include "CollisionManager.h"

Tile::Tile(void)
{
}

Tile::~Tile(void)
{
}

bool Tile::hit( Object& This )
{
	bool ret = false;
	for (size_t i = 0; i < Objects.size(); ++i)
	{
		if (CollisionManager::instance()->on_collision(This, *Objects.at(i)))
		{
			ret = true;
		}
	}
	return ret;
}